package com.mayisoftware.mayioa.business.plan.api.domain;

import com.mayisoftware.mayioa.common.api.base.BaseEntity;

import java.util.Date;

/**
 * 约束配置
 */
public class PlanConstraint extends BaseEntity {

    /**
     * 约束ID
     */
    private Integer planCstrId;

    /**
     * 约束名称
     */
    private String planCstrName;

    /**
     * 约束对象
     */
    private String planCstrObj;

    /**
     * 约束规则
     */
    private String planCstrRule;

    /**
     * 约束值
     */
    private String planCstrValue;

    /**
     * 是否参与系统审核（Y是 N否）
     */
    private String planJoinSyscheck;

    /**
     * 更新人、创建人
     */
    private Long planCstrUpdateUserId;

    /**
     * 更新时间、创建时间
     */
    private Date planCstrUpdateTime;

    /**
     * 备注
     */
    private String planCstrRemark;

    /**
     * 更新用户名
     */
    private String userName;

    /** 计划是否存在此约束标识 默认不存在 */
    private boolean flag = false;

    public boolean isFlag()
    {
        return flag;
    }

    public void setFlag(boolean flag)
    {
        this.flag = flag;
    }

    public String getPlanCstrName() {
        return planCstrName;
    }

    public void setPlanCstrName(String planCstrName) {
        this.planCstrName = planCstrName;
    }

    public Integer getPlanCstrId() {
        return planCstrId;
    }

    public void setPlanCstrId(Integer planCstrId) {
        this.planCstrId = planCstrId;
    }

    public String getPlanCstrObj() {
        return planCstrObj;
    }

    public void setPlanCstrObj(String planCstrObj) {
        this.planCstrObj = planCstrObj;
    }

    public String getPlanCstrRule() {
        return planCstrRule;
    }

    public void setPlanCstrRule(String planCstrRule) {
        this.planCstrRule = planCstrRule;
    }

    public String getPlanCstrValue() {
        return planCstrValue;
    }

    public void setPlanCstrValue(String planCstrValue) {
        this.planCstrValue = planCstrValue;
    }

    public String getPlanJoinSyscheck() {
        return planJoinSyscheck;
    }

    public void setPlanJoinSyscheck(String planJoinSyscheck) {
        this.planJoinSyscheck = planJoinSyscheck;
    }

    public Long getPlanCstrUpdateUserId() {
        return planCstrUpdateUserId;
    }

    public void setPlanCstrUpdateUserId(Long planCstrUpdateUserId) {
        this.planCstrUpdateUserId = planCstrUpdateUserId;
    }

    public Date getPlanCstrUpdateTime() {
        return planCstrUpdateTime;
    }

    public void setPlanCstrUpdateTime(Date planCstrUpdateTime) {
        this.planCstrUpdateTime = planCstrUpdateTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPlanCstrRemark() {
        return planCstrRemark;
    }

    public void setPlanCstrRemark(String planCstrRemark) {
        this.planCstrRemark = planCstrRemark;
    }
}
